﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>

<% List<string> roles = new List<string>();
   roles.Add("All");
   roles.AddRange(Roles.GetAllRoles().ToList());
    %>
<%:Html.DropDownList("RoleName", new SelectList(roles, Model), new { onChange = "submit();" })%>